package cn.com.hhrcw.service.impl;

import cn.com.hhrcw.entity.SysUser;
import cn.com.hhrcw.mapper.MySysUserMapper;
import cn.com.hhrcw.service.ISysUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
    * 用户表 服务实现类
    * </p>
 *
 * @author jiangdong
 * @since 2020-10-30
 */
@Service("SysUserServiceImpl")
@Transactional(rollbackFor = Exception.class)
public class SysUserServiceImpl extends ServiceImpl<MySysUserMapper, SysUser> implements ISysUserService {
    @Autowired
    private MySysUserMapper userMapper;
    @Override
    public SysUser getUserByName(String username) {
        return userMapper.getUserByName(username);
    }

    @Override
    public SysUser getUserByPhone(String phone) {
        return userMapper.getUserByPhone(phone);
    }
}
